package com.ruoyi.web.controller.user.response;

import java.math.BigDecimal;

public class StepWebListResponseVo {
	
	private static final long serialVersionUID = 1L;
	
	/** 设备编号  */
	private String imei;
	
	/** 步数*/
	private Integer step = 0;
	
	/** 距离 */
	private String totalKm = "0";
	
	/** 大卡 */
	private String totalKa = "0";
	
	/** 姓名 */
	private String name = "0";
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getStep() {
		return step;
	}

	public void setStep(Integer step) {
		this.step = step;
		setTotalKm(step);
	}

	public String getTotalKm() {
		return totalKm;
	}

	public void setTotalKm(Integer step) {
		BigDecimal b1 = new BigDecimal("0.4877");
		BigDecimal b2 = new BigDecimal(step);
		BigDecimal b5 = b1.multiply(b2).setScale(2,BigDecimal.ROUND_HALF_UP);
		this.totalKm = b5.toString();
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getTotalKa() {
		return totalKa;
	}

	public void setTotalKa(Integer weight,Integer step) {
		BigDecimal b1 = new BigDecimal("1.036");
		BigDecimal b2 = new BigDecimal(weight);
		BigDecimal b3 = new BigDecimal(step);
		BigDecimal b5 = b1.multiply(b2).multiply(b3).setScale(2,BigDecimal.ROUND_HALF_UP);
		this.totalKa = b5.toString();
	}

	
}
